#pragma once

struct task_struct;

static inline struct task_struct *get_current(void)
{
    register struct task_struct *riscv_current_is_tp __asm__("tp");

    return riscv_current_is_tp;
}

#define current get_current()
